import request from "@/utils/request";

// 查询菜单列表
export function listBatch(query) {
  return request({
    url: "/admin/analysis/batch/",
    method: "get",
    params: query
  });
}

// 查询菜单详细
export function getBatch(batchId) {
  return request({
    url: "/admin/analysis/batch/" + batchId,
    method: "get"
  });
}

// 新增菜单
export function addBatch(data) {
  return request({
    url: "/admin/analysis/batch/",
    method: "post",
    data: data
  });
}

// 修改菜单
export function updateBatch(data) {
  return request({
    url: "/admin/analysis/batch/" + data.id + "/",
    method: "put",
    data: data
  });
}

// 删除菜单
export function delBatch(batchId) {
  return request({
    url: "/admin/analysis/batch/" + batchId + "/",
    method: "delete"
  });
}
